package es.gesfutbol.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.ui.ModelMap;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import es.gesfutbol.domini.implementacio.Equip;

public class AdministracionController extends MultiActionController {

	public ModelAndView init(HttpServletRequest request,
			HttpServletResponse response)throws Exception{		
		return new ModelAndView("redirect:/actualitzarJornada/init.htm");
	}
	
	public ModelAndView initEquipo(HttpServletRequest request,
			HttpServletResponse response)throws Exception{
		
		ModelMap modelMap = new ModelMap();
		modelMap.addAttribute("equip", new Equip());		
		return new ModelAndView("administracion/equipos");
	}
}
